package com.liao.restful;

import com.liao.restful.vo.Book;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class AppApplication {

    public static void main(String[] args) {
        SpringApplication.run(AppApplication.class);
    }


    @RequestMapping("/hello")
    private Book hello(){
        Book book = new Book();
        book.setId("1");
        book.setName("BookName");
        return book;
    }
}
